package main

import (
	"git.oschina.net/dddailing/deepserver/controllers"
	"git.oschina.net/dddailing/deepserver/models"
	_ "git.oschina.net/dddailing/deepserver/routers"
	"github.com/astaxie/beego"
)

func main() {

	beego.SetLogger("file", `{"filename":"serverLog.log"}`)
	beego.AddAPPStartHook(models.SysInit)
	beego.AddAPPStartHook(controllers.DipServer.Start)
	beego.AddAPPStartHook(controllers.FinishedTaskHandlerStart)
	beego.Run()
}
